package com.langshixiaobai.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.langshixiaobai.admin.dao.entity.GroupDO;
import com.langshixiaobai.admin.dto.req.ShortLinkGroupSaveReqDTO;
import com.langshixiaobai.admin.dto.req.ShortLinkGroupSortReqDTO;
import com.langshixiaobai.admin.dto.req.ShortLinkGroupUpdateReqDTO;
import com.langshixiaobai.admin.dto.resp.ShortLinkGroupRespDTO;

import java.util.List;

public interface GroupService extends IService<GroupDO> {

    /**
     * 新增短链接分组
     *
     * @param groupName 短链接分组名
     */
    void saveGroup(String groupName);

    List<ShortLinkGroupRespDTO> listGroup();


    void updateGroup(ShortLinkGroupUpdateReqDTO requestParam);

    void sortGroup(List<ShortLinkGroupSortReqDTO> requestParam);

    void deleteGroup(String gid);
}
